#
# 传参有两种方式
# 1.
# urls.py
#     path('book/detail/<bookid>', views.book_detail),
# views.py
# def book_detail(request, bookid):
#     text = "book的id为" + bookid
#     return HttpResponse(text)

# 2.
# urls.py
#     path('book/author/', views.author)
# 这种方式是通过？传值，url后面？id=xxx
# views.py
# def author(request):
#     author_id = request.GET.get('id')
#     text = "作者id" + author_id
#     return HttpResponse(text)